package xyz.cfg

import java.io.Reader
import java.io.InputStreamReader
import xyz.cfg.Cfg
import xyz.cfg.CfgFactory

object CfgRunner extends App {
   val reader:Reader=new InputStreamReader(getClass().getResourceAsStream("/my.conf"),"UTF-8")
	val conf:Cfg = CfgFactory.parseReader(reader)
	val entry:Map[String,String]=conf.entry
	for(key<-entry.keys){
	  val value:String=conf.getString(key)
	  println(s"key:${key}--value:${value}")
	}
}